.head ค้นข้อมูลผู้ลงทะเบียน
%style
  td.label {color:#2175D3;font-weight:bold;}
%p
= javascript_include_tag "prototype"
.activity_form{:style=>'border:1px solid pink;color:#2175BC'}
  - form_for( :certificate, :url => { :action => 'show_registration_for_print'}) do |f|
    %table{:align=>'center'}
      %tr
        %td.label หลักสูตร
        %td= select_tag "syllabus_id", "<option value=''>--กรุณาเลือก--</option>"+options_from_collection_for_select(@syllabuses,:id,:name), options = {:prompt=>'--', :onchange=>remote_function(:update => 'syllabus_opening_div', :url => {:controller => 'syllabus', :action => 'show_syllabus_openings'}, :with => "'syllabus_id='+this.value")}
      %tr
        %td.label รอบการสอบ
        %td#syllabus_opening_div
      %tr
        %td.label รหัสตรวจสอบ
        %td= text_field_tag :ref_code
      %tr
        %td{:colspan=>'2', :align=>'center', :height=>'40'}
          = submit_tag "ตรวจสอบ"
